package com.test.service.impl;

import com.test.dao.SystemUserMapper;
import com.test.pojo.SystemUser;
import com.test.service.SystemUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.servlet.http.HttpSession;

@Service
public class SystemUserServiceImpl implements SystemUserService {

    @Autowired
    private SystemUserMapper systemUserMapper;

    @Override
    public SystemUser login(SystemUser user) {
        return systemUserMapper.selectByNameAndPassword(user);
    }

}
